package com.quarkboom.kotlinapp.intercept

/**
 * @author: zhuozhang6
 * @date: 2022/5/12
 * @email: zhuozhang6@iflytek.com
 */
class InterceptorTwo : InterceptorCallBack {

    override fun intercept(chain: InterceptorCallBack.Chain): String? {

        println("我Leader2处理过了，传给下一个拦截器")
        val request = chain.getRequest()
        val result = request + "我Leader2处理过了，传给下一个拦截器"
        val response = chain.proceed(result)
        return response
    }
}